﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../Template.Master"  CodeBehind="DanhSachKhuyenMai.aspx.cs" Inherits="FastDeal.Admin.DanhSachKhuyenMai" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel1" runat="server" BackColor="white">
        <div id="DanhSachKhuyenMaiFull" align="center">
            <asp:Label ID="Label1" runat="server" Text="DANH SÁCH KHUYẾN MÃI &lt;br /&gt;" 
                CssClass="header"></asp:Label>
            <br />
            <asp:GridView ID="gvDanhSachKhuyenMai" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" 
                BorderStyle="Solid" BorderWidth="1px" CellPadding="3" ForeColor="Black" 
                GridLines="Vertical" HorizontalAlign="Center" 
                onpageindexchanging="gvDanhSachKhuyenMai_PageIndexChanging" 
                onselectedindexchanged="gvDanhSachKhuyenMai_SelectedIndexChanged" PageSize="20" 
                Width="650px" onrowdeleting="gvDanhSachKhuyenMai_RowDeleting">
                
                <AlternatingRowStyle BackColor="#CCCCCC" />
                <Columns>
                    <asp:BoundField DataField="MaKhuyenMai" HeaderText="Mã ">
                    <ItemStyle Width="40px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="TenKhuyenMai" HeaderText="Tên Khuyến Mãi" >
                    <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="ThoiGianBatDau" HeaderText="Bắt Đầu" >
                    <ItemStyle Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="ThoiGianKetThuc" HeaderText="Kết Thúc" >
                    <ItemStyle Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="TinhTrang" HeaderText="Tình Trạng" >
                    <ItemStyle Width="150px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="MaDoanhNghiep" HeaderText="Doanh Nghiệp" >
                    <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="Chi Tiết">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("MaKhuyenMai") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink1" runat="server" 
                                NavigateUrl='<%# "~/Admin/ChiTietKhuyenMai.aspx?ID=" + Eval("MaKhuyenMai") %>' 
                                Text='<%# "Xem" %>'></asp:HyperLink>
                        </ItemTemplate>
                        <ItemStyle Width="50px" />
                    </asp:TemplateField>
                    <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Icons/cancel.png" 
                        HeaderText="Xóa" ShowDeleteButton="True" />
                </Columns>
                <FooterStyle BackColor="#CCCCCC" />
                <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <RowStyle Height="40px" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                <SortedAscendingHeaderStyle BackColor="Gray" />
                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                <SortedDescendingHeaderStyle BackColor="#383838" />
                
            </asp:GridView>
            <asp:Panel ID="Panel2" runat="server" Height="40px">
            </asp:Panel>
            <asp:Label ID="lbTongSoKhuyenMai" runat="server" CssClass="tongsokhuyenmai" 
                Text="Tổng số khuyến mãi"></asp:Label>
            <br />
            <asp:HyperLink ID="linkQuayLai" runat="server" 
                NavigateUrl="~/Admin/Default.aspx">QUAY LẠI</asp:HyperLink>
            &nbsp;| &nbsp;<asp:HyperLink ID="linkQuayLai0" runat="server" 
                NavigateUrl="~/Admin/KhuyenMaiMoi.aspx">DUYỆT KHUYẾN MÃI</asp:HyperLink>
        </div>
    </asp:Panel>
</asp:Content>
